package com.huirui.server.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;

import java.time.LocalDate;
import java.util.List;

@Data
@Schema(description = "用户浏览历史分组VO（按日期分组）")
public class BrowseHistoryVo {

    @Schema(
            description = "浏览日期",
            example = "2023-10-01",
            type = "string"
    )
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate date;

    @Schema(
            description = "当日浏览的商品列表"
    )
    private List<BrowseHistoryAnotherVo> list;
}
